class Usuario < ActiveRecord::Base
	
	validates :nome,    :presence => true
    validates :senha,   :presence => true,
						:length => { :minimum => 8 }
	validates :email,   :presence => true
	validates :cpf,  	:presence => true
	validates :telefone,:presence => true
	validates :rua,  	:presence => true
	validates :numero,  :presence => true
	validates :bairro,  :presence => true
	validates :cidade,  :presence => true
	validates :estado,  :presence => true
	validates :pais,  	:presence => true
	has_many:contratos, :dependent => :destroy
end
